package java44th.group.service.wx.cart;

import java44th.group.bean.po.MarketCart;
import java44th.group.bean.wx.bo.cart.*;
import java44th.group.bean.wx.vo.cart.CartCheckoutVo;
import java44th.group.bean.wx.vo.cart.CartIndexVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface WxCartService {
    Integer add(CartAddBO cartAddBO,Integer userId);

    CartIndexVO index(Integer userId);

    int fastadd(CartAddBO fastaddBo,Integer userId);

    int insert(List<MarketCart> insertmsg);

    CartIndexVO checked(CartCheckedBo checkedBo,Integer userId);

    int update(CartUpdateBo updateBo);

    CartIndexVO delete(ProductIdsBO productIds, Integer getuserId);

    CartCheckoutVo checkout(CartCheckoutBo checkoutBo, Integer getuserId);

    long goodscount(Integer getuserId);
}

